from rest_framework.decorators import api_view, authentication_classes, permission_classes
from libs.simple_responses import api_success
from libs.auth.openapi import openapi_auth


@api_view(['GET'])
@openapi_auth()
@authentication_classes([])
@permission_classes([])
def ping(request):
    data = {
        'message': 'pong'
    }
    return api_success(data=data)
